package com.javarush.test.level04.lesson13.task02;

import java.io.BufferedReader;
import java.io.InputStreamReader;

/**
 * Created by IntelliJ IDEA.
 * User: Andry
 * Date: 03.02.13
 * Time: 19:41
 * To change this template use File | Settings | File Templates.
 */
public class Solution
{
    public static void main(String[] args) throws Exception
    {
        //Напишите тут ваш код
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        String sM = reader.readLine();
        int m = Integer.parseInt(sM);
        String sN = reader.readLine();
        int n = Integer.parseInt(sN);

        for(int i = 0; i < m; i++)
        {
            for(int j = 0; j < n; j++)
            {
                System.out.print("8");
            }
            System.out.println();
        }
    }
}
